import { inject, observer } from 'mobx-react';
import CommonLedger from "./CommonLedger";
import * as Bctt from "../../constants/BaseListConstant";
import {WeaTools} from "ecCom";

@inject('ledgerStore','synergyStore')
@observer
class Ledger extends CommonLedger {

    getStore(){
        return this.props.ledgerStore;
    }

    getTabSearchTypes(store){
        let arr = [];
        arr.push(Bctt.TAB_SEARCH_TYPE_BASE);
        arr.push(Bctt.TAB_SEARCH_TYPE_ADVANCED);
        return arr;
    }
}

export default WeaTools.tryCatch(React,
    props => <WeaErrorPage msg={ props.error ? props.error : '对不起，该页面异常，请联系管理员！'} />,
    {error: ""}
)(Ledger);